package com.flask.colorpicker.cameralibrary.util;

import java.util.Arrays;

/**
 * Device Util
 */
public class DeviceUtil {

    /**
     * 数组合并
     *
     * @param first  T[]
     * @param second T[]
     * @param <T>    T
     * @return <T> T[]
     */
    public static <T> T[] concat(T[] first, T[] second) {
        T[] result = Arrays.copyOf(first, first.length + second.length);
        System.arraycopy(second, 0, result, first.length, second.length);
        return result;
    }
}
